package list;

public class Test {
    public static void main(String[] args) {

        MySingleLinkedList msl = new MySingleLinkedList();

        msl.creatList();
        msl.display();
        System.out.println(msl.size());
        System.out.println("===========");

        msl.addFirst(44);
        msl.display();
        System.out.println("===========");

        msl.addLast(55);
        msl.display();
        System.out.println("===========");

        msl.addIndex(0,99);
        msl.display();
        System.out.println("===========");

        System.out.println(msl.contains(9));
        System.out.println("===========");

        msl.remove(99);
        msl.display();
        msl.remove(34);
        msl.display();
        System.out.println("===========");

        msl.addFirst(12);
        msl.addFirst(12);
        msl.addFirst(12);
        msl.display();
        msl.removeAll(12);
        msl.display();

    }
}
